package com.spider.admin.service.service;


import com.spider.admin.exception.SpiderException;
import com.spider.admin.http.entity.PageResult;
import com.spider.admin.store.primary.model.ServiceInfo;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface Service {
    ServiceInfo queryServiceById(String pid) throws SpiderException;

    int saveService(ServiceInfo serviceInfo) throws SpiderException;

    int updateService(ServiceInfo serviceInfo, String pid) throws SpiderException;

    int onLineService(String pid) throws SpiderException;

    int offLineService(String pid) throws SpiderException;


    PageResult<ServiceInfo> queryServiceByTenantId(Integer page,
                                                   Integer pageSize,
                                                   String serviceName,
                                                   String curTenantId,
                                                   String tenantId,
                                                   String appId) throws SpiderException;

    int remove(String pid) throws SpiderException;

}

